package com.jojo.controller;

import com.jojo.yaml.Constant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    @Autowired
    private Constant constant;

    @RequestMapping("")
    public String index(Model model) {
        model.addAttribute("url", constant.url);
        return "index";
    }
}
